package com.itheima.StringDemo;

import java.util.Scanner;

public class StringDemo4 {
    public static void main(String[] args) {
        //键盘录入一个字符串，统计该字符串中大写字母字符，小写字母字符，数字字符出现的次数
        Scanner sc=new Scanner(System.in);
        String s1=sc.next();
        int big_cnt=0;
        int small_cnt=0;
        int num_cnt=0;
        for (int i = 0; i < s1.length(); i++) {
            if (s1.charAt(i)>='a'&&s1.charAt(i)<='z'){
                small_cnt++;
            } else if (s1.charAt(i)>='A'&&s1.charAt(i)<='Z') {
                big_cnt++;
            } else if (s1.charAt(i)>='0'&&s1.charAt(i)<='9') {
                num_cnt++;
            }
        }
        System.out.println("大写字母有："+big_cnt+"个");
        System.out.println("小写字母有："+small_cnt+"个");
        System.out.println("数字字符有："+num_cnt+"个");
    }
}
